package main
import "fmt"
func main(){
    var a int = 100
    var b int = 200
    var ret int
    
    ret = max(a, b)

    x, y := swap("Mahesh", "Kumar");
    fmt.Println(x, y);
    fmt.Printf("最大值是：%d\n", ret);
}

func max(num1, num2 int) int {
    var result int

    if(num1 > num2){
        result = num1
    } else {
        result = num2
    }

    return result
}

func swap(x, y string) (string, string) {
    return y, x
}